package com.meridian.commerce.model;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooEntity
public class UserAccount {
	
	  @NotNull
	    @Size(min = 3, max = 50)
	    private String firstName;

	    @Size(min = 0, max = 50)
	    private String middleName;

	    @NotNull
	    @Size(min = 3, max = 50)
	    private String lastName;

	    @NotNull
	    private String email;

	    private String password;

	    @Temporal(TemporalType.TIMESTAMP)
	    @DateTimeFormat(style = "S-")
	    private Date dob;

	    private Boolean subscribes;

	  
}
